﻿using Hangfire.Annotations;
using Hangfire.Dashboard;

namespace WebApplication1
{
    public class CustomerDashboardAuthorizationFilter :
        IDashboardAuthorizationFilter
    {
        /// <summary>
        /// 可以去校验数据库当前账号是否可以访问hangfire界面
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public bool Authorize([NotNull] DashboardContext context)
        {
            return true;
        }
    }
}
